package com.help10000.rms.ui.adapter;

import android.content.Context;

import com.amir.common.beans.RepairInfo;
import com.amir.common.beans.Ware;
import com.amir.common.holder.CommonViewHolder;
import com.amir.common.mvp.base.BaseSingleItemTypeRecyclerViewAdapter;
import com.help10000.rms.R;

import java.util.List;

public class SelectPickingAdapter extends BaseSingleItemTypeRecyclerViewAdapter<Ware> {

    RepairInfo repairInfo;
    public SelectPickingAdapter(Context mContext, List<Ware> wares, int layoutId, RepairInfo repairInfo) {
        super(mContext, wares, layoutId);
        this.repairInfo = repairInfo;
    }

    @Override
    protected void bindData(CommonViewHolder holder, Ware data, int position) {
        holder.setText(R.id.tv_name,data.getWareName());
        holder.setOnClickListener(R.id.ll_root, v -> {

            if (mOnItemClickListener != null){
                mOnItemClickListener.onItem(position);
            }
        });
    }
}
